// import { methods } from "../uni_modules/uview-ui/libs/mixin/mixin.js";
import http from "./http.js";




//用户协议
// export function userxieyi(data){
// 	return http.request(
// 	    {
// 	        url:`/api/common/getsettings`,
// 			method:"post",
// 	    },
// 	    data,
// 	    true,
// 	);
// }

// 获取验证码
export function sendsms(data){
	return http.request(
	    {
	        url:`/api/login/sendsms`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//注册
export function register(data){
	return http.request(
	    {
	        url:`/api/login/register`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//登录
export function login(data){
	return http.request(
	    {
	        url:`/api/login/index`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//首页banner图
export function banner(data){
	return http.request(
	    {
	        url:`/api/common/banner`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//获取系统公告
export function notice(data){
	return http.request(
	    {
	        url:`/api/common/notice`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//拍卖专区
export function goodsIndex(data){
	return http.request(
	    {
	        url:`/api/index/index`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//拍卖专区详情
export function goodsDetail(data){
	return http.request(
	    {
	        url:`/api/index/indexdetail`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//创建订单
export function createorder(data){
	return http.request(
	    {
	        url:`/api/order/createorder`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//我的买品列表
export function buyorderlist(data){
	return http.request(
	    {
	        url:`/api/order/buyorderlist`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//我的买品列表详情
export function buyorderdetail(data){
	return http.request(
	    {
	        url:`/api/order/buyorderdetail`,
			method:"post",
	    },
	    data,
	    true,
	);
}



//实名认证
export function checkuser(data){
	return http.request(
	    {
	        url:`/api/users/checkuser`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//添加用户收货地址
export function adduserarea(data){
	return http.request(
	    {
	        url:`/api/users/adduserarea`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//地址列表
export function getuserarea(data){
	return http.request(
	    {
	        url:`/api/users/getuserarea`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//删除用户地址
export function deluserarea(data){
	return http.request(
	    {
	        url:`/api/users/deluserarea`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//设置默认地址
export function setuserarea(data){
	return http.request(
	    {
	        url:`/api/users/setuserarea`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//取消默认地址
export function celuserarea(data){
	return http.request(
	    {
	        url:`/api/users/celuserarea`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//常见问题
export function problem(data){
	return http.request(
	    {
	        url:`/api/common/problem`,
			method:"post",
	    },
	    data,
	    true,
	);
}

// 上传付款截图
export function uploadpaymentimgs(data){
	return http.request(
	    {
	        url:`/api/order/uploadpaymentimgs`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//我的权限
export function userauthority(data){
	return http.request(
	    {
	        url:`/api/users/userauthority`,
			method:"post",
	    },
	    data,
	    true,
	);
}



//我的卖品列表
export function sellorderlist(data){
	return http.request(
	    {
	        url:`/api/order/sellorderlist`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//我的卖品列表详情
export function sellorderdetail(data){
	return http.request(
	    {
	        url:`/api/order/sellorderdetail`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//完成订单
export function submitorderfinish(data){
	return http.request(
	    {
	        url:`/api/order/submitorderfinish`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//取消订单
export function cancelorder(data){
	return http.request(
	    {
	        url:`/api/order/cancelorder`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//用户协议
export function getsettings(data){
	return http.request(
	    {
	        url:`/api/common/getsettings`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//转卖
export function resell(data){
	return http.request(
	    {
	        url:`/api/order/resell`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//交割发货
export function deliverygoods(data){
	return http.request(
	    {
	        url:`/api/order/deliverygoods`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//获取用户信息
export function userinfo(data){
	return http.request(
	    {
	        url:`/api/users/userinfo`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//修改密码
export function resetpassword(data){
	return http.request(
	    {
	        url:`/api/login/resetpassword`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//修改手机号1
export function checkphone(data){
	return http.request(
	    {
	        url:`/api/users/checkphone`,
			method:"post",
	    },
	    data,
	    true,
	);
}

//修改手机号1
export function editusernewphone(data){
	return http.request(
	    {
	        url:`/api/users/editusernewphone`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//用户场次
export function indexlist(data){
	return http.request(
	    {
	        url:`/api/index/indexlist`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//收益总
export function userprofit1(data){
	return http.request(
	    {
	        url:`/api/users/userprofit1`,
			method:"post",
	    },
	    data,
	    true,
	);
}


//收益列表
export function userprofit2(data){
	return http.request(
	    {
	        url:`/api/users/userprofit2 `,
			method:"post",
	    },
	    data,
	    true,
	);
}
